#pragma once
#include "CybertronBridgeTaskBaseInterface.hpp"
#include "cybertron/DefinesCore.hpp"
#include "Sensor/SensorCommon.pb.h"
#include <atomic>
#include <string>

CYBERTRON_BEGIN

class CybertronBridgeSyncTaskBase : public CybertronBridgeTaskBaseInterface
{
public:
	CybertronBridgeSyncTaskBase();
	virtual ~CybertronBridgeSyncTaskBase();

protected:

	friend class CybertronBridgeBase;
	friend class CybertronWebBridge;

	void fromBridgeOnFrame(int frame);
	int lastTickMs() { return mLastTickMs; }
	void setLastTickMs(int ms) {
		mLastTickMs = ms;
	}
	int mLastTickMs;
};

CYBERTRON_END